import request from '@/api/request';

/**
 * 分页
 * @param {*} query 参数
 * @returns 返回Promise对象
 */
export const thirdBindGrantPageApi = query => {
    return request({
        url: '/api/mgt/thirdBindGrant/page',
        method: 'get',
        params: query,
        isLoading: true
    });
};

/**
 * 绑定用户
 * @param {*} query 参数
 * @returns 返回Promise对象
 */
export const thirdBindGrantEditUserApi = query => {
    return request({
        url: '/api/mgt/thirdBindGrant/editUser',
        method: 'put',
        data: query,
        isLoading: true
    });
};

/**
 * 详情
 * @param {*} query 参数
 * @returns 返回Promise对象
 */
export const thirdBindGrantDetailApi = query => {
    return request({
        url: '/api/mgt/thirdBindGrant/getDetail',
        method: 'get',
        params: query,
        isLoading: true
    });
};

/**
 * 删除
 * @param {*} query 参数
 * @returns 返回Promise对象
 */
export const thirdBindGrantRemoveApi = query => {
    return request({
        url: '/api/mgt/thirdBindGrant/removeByIds',
        method: 'delete',
        params: query,
        isLoading: true
    });
};
